package com.ton.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.sql.Date;


@Data
@TableName("\"book_info\"")
@Accessors(chain = true)
@ToString
public class BookBean {
    @TableId(value = "\"auto_id\"",type = IdType.AUTO)
    Integer autoId;
    @TableField("\"title\"")
    String title;
    @TableField("\"author\"")
    String author;
    @TableField("\"press\"")
    String press;
    @TableField("\"publish_date\"")
    Date publishDate;
    @TableField("\"price\"")
    Double price;
}
